package com.travel.entity;

import org.springframework.stereotype.Component;
import java.util.Date;
@Component
public class TUser   {
  private int userId;
  private String name;
  private Date registerTime;
  private String image;
  private String gender;
  private String phoneNumber;
  private String password;
  private int level;

  public int getUserId() {
    return userId;
  }

  public void setUserId(int userId) {
    this.userId = userId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public java.util.Date getRegisterTime() {
    return registerTime;
  }

  public void setRegisterTime(java.util.Date registerTime) {
    this.registerTime = registerTime;
  }

  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }

  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }

  public String getPhoneNumber() {
    return phoneNumber;
  }

  public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public int getLevel() {
    return level;
  }

  public void setLevel(int level) {
    this.level = level;
  }

  @Override
  public String toString() {
       return "TUser {" +
           "userId=" + userId +
           "name=" + name +
           "registerTime=" + registerTime +
           "image=" + image +
           "gender=" + gender +
           "phoneNumber=" + phoneNumber +
           "password=" + password +
           "level=" + level +
           "}";
  }
  public TUser() {
  }
  public TUser(int userId,String name,java.util.Date registerTime,String image,String gender,String phoneNumber,String password,int level) {
       this.userId = userId;
       this.name = name;
       this.registerTime = registerTime;
       this.image = image;
       this.gender = gender;
       this.phoneNumber = phoneNumber;
       this.password = password;
       this.level = level;
  }
}
